package cn.bdqn.domain;

import java.io.Serializable;

/**
 * 补货单配货实体类
 * @author dkj
 */
public class ReplenishEquip implements Serializable {


    /**
     * id
     */
    private Integer id;


    /**
     * 补货单id
     */
    private Integer replenishId;

    /**
     * 补货单对象
     */
    private Replenish replenish;

    /**
     * 货物id
     */
    private Integer cargoId;

    /**
     * 货物对象
     */
    private Cargo cargo;

    /**
     * 货物名
     */
    private String cargoName;

    /**
     * 发货数量
     */
    private Integer sendNumber;

    /**
     * 剩余发货数量
     */
    private Integer surplusSum;

    /**
     * 1.补货  2.不补货
     */
    private Integer ifReplenish;


    public Integer getCargoId() {
        return cargoId;
    }

    public void setCargoId(Integer cargoId) {
        this.cargoId = cargoId;
    }

    public Integer getReplenishId() {
        return replenishId;
    }

    public void setReplenishId(Integer replenishId) {
        this.replenishId = replenishId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Replenish getReplenish() {
        return replenish;
    }

    public void setReplenish(Replenish replenish) {
        this.replenish = replenish;
    }

    public Cargo getCargo() {
        return cargo;
    }

    public void setCargo(Cargo cargo) {
        this.cargo = cargo;
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName == null ? null : cargoName.trim();
    }

    public Integer getSendNumber() {
        return sendNumber;
    }

    public void setSendNumber(Integer sendNumber) {
        this.sendNumber = sendNumber;
    }

    public Integer getSurplusSum() {
        return surplusSum;
    }

    public void setSurplusSum(Integer surplusSum) {
        this.surplusSum = surplusSum;
    }

    public Integer getIfReplenish() {
        return ifReplenish;
    }

    public void setIfReplenish(Integer ifReplenish) {
        this.ifReplenish = ifReplenish;
    }

    @Override
    public String toString() {
        return "ReplenishEquip{" +
                "id=" + id +
                ", replenish=" + replenish +
                ", cargo=" + cargo +
                ", cargoName='" + cargoName + '\'' +
                ", sendNumber=" + sendNumber +
                ", surplusSum=" + surplusSum +
                ", ifReplenish=" + ifReplenish +
                '}';
    }
}
